from django.db import models

# Create your models here.

class MXwheel(models.Model):
    img = models.CharField(max_length=255, verbose_name="图片路径")
    class Meta:
        db_table = 'slide'


class MXsold(models.Model):
    img = models.CharField(max_length=255, verbose_name="图片路径")
    name1 = models.CharField(max_length=55, verbose_name="商品国际名称")
    name2 = models.CharField(max_length=55, verbose_name="商品名称")
    state = models.CharField(max_length=100, verbose_name="商品状态")
    title = models.CharField(max_length=100, verbose_name="商品主题")

    class Meta:
        db_table = 'goods_scroll'


class MXtuijian(models.Model):
    english_type = models.CharField(max_length=100,verbose_name='商品推荐英文')
    chinese_type = models.CharField(max_length=100,verbose_name='商品推荐')


    class Meta:
        db_table = 'mx_tuijian'


class MXgoodslist(models.Model):
    img = models.CharField(max_length=255, verbose_name="图片路径")
    name = models.CharField(max_length=64, verbose_name="图片名称")
    des = models.CharField(max_length=64,verbose_name='商品描述')
    class Meta:
        db_table = 'goods_list1'

class MXindex(models.Model):
    type = models.CharField(max_length=100,verbose_name='一级分类')
    class Meta:
        db_table = 'mx_index'


class MXUser(models.Model):
    username = models.CharField(max_length=100,verbose_name='手机或邮箱')
    pwd = models.CharField(max_length=255,verbose_name='密码')

    class Meta:
        db_table = 'mx_user'

